function GetQueryString(name)
{
    var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if(r!=null)return  unescape(r[2]); return null;
}

function GetAllString(append) {
    var url=location.search;

    if(url.indexOf("?")!=-1)
    {
        var str = url.substr(1);
        return "?"+str+"&"+append;
        // console.log(str)
    }
    if (append!=""){
        return "?"+append;
    }
    return"";
}